package cn.wolfcode.wolf2w.business.listener;

import cn.wolfcode.wolf2w.business.service.IStrategyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class MyApplicationReadyEventListener implements ApplicationListener<ApplicationReadyEvent> {

    @Autowired
    private IStrategyService strategyService;

    @Override
    public void onApplicationEvent(ApplicationReadyEvent event) {
//        System.out.println("程序初始化完成");
        strategyService.initStrategyStatisHash();

    }
}
